package com.wxyzz.canteenadmin.order.afterSales.mapper;

import com.wxyzz.canteenadmin.order.afterSales.vo.AfterSalesVo;
import com.wxyzz.canteenadmin.order.afterSales.vo.MemberInfoVo;
import com.wxyzz.canteencommon.entity.ordermanager.AfterSale;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AfterSalesMapper {

    // 分页查询
    List<AfterSalesVo> selectAfterSales(@Param("afterSaleId") Integer afterSaleId,
                                        @Param("memberId") Integer memberId,
                                        @Param("startTime") Date startTime,
                                        @Param("endTime") Date endTime,
                                        @Param("status") String status);
    // 审核售后订单
    int updateAfterSales(AfterSale afterSale);

    // 通过订单号查询会员信息
    MemberInfoVo selectMemberInfoByOrderNumber(String orderNumber);
}
